package com.jml.service;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Service;

@Service
@RefreshScope     //刷新作用域：在运行时动态刷新对象属性。
public class DepartServiceImpl {

    @Value("${depart.name}")
    private String departName;

    public String getDepartName(){
        return departName;
    }
}
